package io;

import java.io.File;

public class IODemo3 {
    public static void main(String[] args) throws InterruptedException {
        File file=new File("./maomao.jpg");
        boolean ret=file.delete();
        System.out.println(ret);

        /*file.deleteOnExit();   退出之后再删除,这种文件称为“临时文件”
        Thread.sleep(3000);*/

    }
}
